# 增加

# li = [1,2,3,4]
# li.append('hello')
# li.append([1,3,4,5])

# li = [1, 2, 3, 4, 'hello', [1, 3, 4, 5]]
# li.insert(0,'tongyao')
#
# print(li)
# one = [1,2,3,4,5,6,7]
# li = ['hello', [1, 3, 4, 5]]
# li.extend(one)
#
# print(li)

# 删除

# li = ['hello', [1, 3, 4, 5], 1, 2, 3, 4, 5, 6, 7]

# print(li.pop(0))
# print(li)
# li.remove([1, 3, 4, 5])
# print(li)
# li.clear()
# print(li)


# 修改
# li[1] = 'tongyao'
# print(li)


# 查询
# li01 = ['hello','tongyao','sangen','tangsan','tongyao']
# li02 = ['hello','tongyao','sangen','tangsan','tongyao']
# print(li.index('tongyao',2,3))

# print(li.count('tong'))

# print(id(li01))
# print(id(li02))
# li03 = li01.copy()
#
# print(id(li01))
# print(id(li03))


li = [1,4,5,7,8,6,4,23]
#
# li.sort(reverse=True)
# print(li)

# print(dir(li))

# 可变和不可变类型
# 可变数据类型就是可以在原数据上进行修改删除增加的操作
# 不可变数据类型就是不可以在原数据上进行修改删除增加的操作


tup1 = (50,)
